package com.gxg.baidu.baidutest;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class WelcomActivity extends AppCompatActivity {

    @Bind(R.id.tv_map)
    TextView tvMap;
    @Bind(R.id.tv_dingwei)
    TextView tvDingwei;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcom);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.tv_dilibianma,R.id.tv_diaoqibaidumap,R.id.tv_lujingguihua,R.id.tv_poi,R.id.tv_fugaiwu,R.id.tv_map, R.id.tv_dingwei})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_map:
                startActivity(new Intent(WelcomActivity.this,MainActivity.class));
                break;
            case R.id.tv_dingwei:
                startActivity(new Intent(WelcomActivity.this,MapTypeChangeActivity.class));
                break;
            case R.id.tv_fugaiwu:
                startActivity(new Intent(WelcomActivity.this,FuGaiWuActivity.class));
                break;
            case R.id.tv_poi:
                startActivity(new Intent(WelcomActivity.this,POIjiansuoActivity.class));
                break;
            case R.id.tv_lujingguihua:
                startActivity(new Intent(WelcomActivity.this,LuJingGuiHuaActivity.class));
                break;
            case R.id.tv_diaoqibaidumap:
                startActivity(new Intent(WelcomActivity.this,QiDiaoBaiduMapActivity.class));
                break;
            case R.id.tv_dilibianma:
                startActivity(new Intent(WelcomActivity.this,DiLiBianMaActivity.class));
                break;
        }
    }
}
